﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StackExchangeRedisDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            var reids=new RedisHelper(11);
            //写入
            reids.StringSet("testypf", "杨朋飞",TimeSpan.FromSeconds(10));
            Console.WriteLine("test");

            //读取
            Console.WriteLine(reids.StringGet("testypf"));
            Console.Read();
        }
    }
}
